<?php
include_once "xAP-functions/webincludes.php";


if (substr($_GET["id"],0,2)=="xx"){
	$widgetid=intval(substr($_GET["id"],2));
	// collect the config url
	$sql="select xAP_Widget_Location.LocationID,xAP_Widget_Location.ColumnRef,xAP_Widget_Location.ExtraData,
	xAP_Widget_Library.Module,xAP_Widget_Library.URLConfig 
	from xAP_Widget_Location inner join xAP_Widget_Library on
	xAP_Widget_Location.WidgetID=xAP_Widget_Library.WidgetID

	where  xAP_Widget_Location.LocationID=".$widgetid;


	$result=dbquery($sql);
	if(count($result)>0){
		$extradata=unserialize($result[0]["ExtraData"]);
		$widgetID=$result[0]["LocationID"];
		include "../".$result[0]["Module"]."/".$result[0]["URLConfig"];
	}
}
?>
